<div>  
  <table class="list">
    <tr class="listheader">
      <td>Category Name</td>
      <td>Category Code</td>
      <td></td>
    </tr>    
    <% 
    row_class="alternaterows"
    for clientcategory in @clientcategories
      if row_class=="rows"
        row_class="alternaterows" 
      else
        row_class="rows"
      end
    %>
      <tr class="<%= row_class %>">
        <td width="15%"><%= clientcategory.name %></td>
        <td><%= clientcategory.code %></td>
        <td align="right">
          <%= link_to 'Edit', :action => "edit", :id => clientcategory.id%>
          <%= link_to '[x]', {
            :action => "delete", 
            :id => clientcategory.id}, 
            {
            :method => :post, 
            :confirm => "Really delete #{clientcategory.name}?"
          }%>
        </td>
      </tr>
    <% end %>
  </table>
</div>
<br />
<%= link_to 'New Client Category', :action => "new" %>
